﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QueryDriver.aspx.cs" Inherits="RantopadService.query.QueryDriver" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
    <style type="text/css">
body {font-family: Arial, Helvetica, sans-serif; font-size:12px; text-align:center;background-color:#0e1115;color:white }
        .auto-style1 {
            width: 459px;
        }
    </style>
</head>
<body runat="server">
    <form id="form1" runat="server">
        <center>
        <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tbody>
                <tr>
                    <td colspan="2" align="middle" valign="bottom">

                        <asp:TextBox ID="TextWhereLike" runat="server"></asp:TextBox>
                        <asp:DropDownList ID="DriverType" runat="server">
                            
                        </asp:DropDownList>
                        <asp:Button ID="Search" runat="server" Text="搜索" OnClick="Search_Click" />
                        <asp:Label ID="LabelMsg" runat="server" Text=""></asp:Label>
                        


                            <asp:GridView ID="GridView1" AllowPaging="True" runat="server" DataKeyNames="ID" Font-Size="12px"
                                 Width="100%" 
                                OnPageIndexChanging="GridView1_PageIndexChanging" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" OnSorting="GridView1_Sorting" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand">
                                <Columns>
                                    <asp:BoundField DataField="ID" HeaderText="ID" HeaderStyle-Width="100" />
                                    <asp:BoundField DataField="NAME" HeaderText="名称" HeaderStyle-Width="100" />
                                    <asp:BoundField DataField="V" HeaderText="型号" HeaderStyle-Width="100" />
                                    <asp:BoundField DataField="TYPE_NAME" HeaderText="设备名" HeaderStyle-Width="100" />
                                    <asp:BoundField DataField="URI" HeaderText="路径" HeaderStyle-Width="100" />
                                    <asp:ButtonField HeaderText="修改"  Text="修改" commandname="EditUser"  HeaderStyle-Width="100"/>
                                    <asp:CommandField HeaderText="删除" ShowDeleteButton="true" HeaderStyle-Width="100" />
                                    <%--<asp:CommandField HeaderText="删除" ShowEditButton="true"  ShowDeleteButton="true" HeaderStyle-Width="100"/>--%>
                                </Columns>

                                <AlternatingRowStyle BackColor="White" />
                                <FooterStyle BackColor="#CCCC99" />
                                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                                <RowStyle BackColor="#F7F7DE" />
                                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                <SortedAscendingCellStyle BackColor="#FBFBF2" />
                                <SortedAscendingHeaderStyle BackColor="#848384" />
                                <SortedDescendingCellStyle BackColor="#EAEAD3" />
                                <SortedDescendingHeaderStyle BackColor="#575357" />
                            </asp:GridView>
                        

                        <br />
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Label Text="ID:" runat="server"></asp:Label>
                    </td>
                    <td valign="bottom" align="left">
                        <asp:TextBox ID="ID" runat="server" Enabled="false"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Label Text="名称:" runat="server"></asp:Label>
                    </td>
                    <td valign="bottom" align="left">
                        <asp:TextBox ID="Name" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Label Text="型号:" runat="server"></asp:Label>
                    </td>
                    <td valign="bottom" align="left">
                        <asp:TextBox ID="V" runat="server" ></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Label Text="类型:" runat="server" ></asp:Label>
                    </td>
                    <td valign="bottom" align="left">
                        <asp:DropDownList ID="DropDownList2" runat="server">
                            
                        </asp:DropDownList>
                        <%--<asp:TextBox ID="rPsd" runat="server" TextMode="Password"></asp:TextBox>--%>
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Label Text="存储路径:" runat="server"></asp:Label>
                    </td>
                    <td valign="bottom" align="left">
                        
                        <asp:TextBox ID="URI" runat="server" ></asp:TextBox>
                        <asp:FileUpload ID="FileUpload1" runat="server" Width="108px" />
                        <asp:Button ID="BtnUpLoad" Text="上传" runat="server" OnClick="BtnUpLoad_Click"  />
                        <asp:Label ID="UpLoadMsg" runat="server"></asp:Label>

                    </td>
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1">
                        <asp:Button ID="ButAddOrUpdate" Text="添加" runat="server" OnClick="ButAddOrUpdate_Click" ToolTip="点击“清空”按钮后会恢复为“添加”功能" />
                    </td>
                    <td valign="bottom" align="left">
                        <asp:Button ID="ButClear" Text="清空" runat="server" OnClick="ButClear_Click" />
                    </td>
                </tr>
                <tr>
                    <td valign="bottom" align="right" class="auto-style1"></td>
                    <td valign="bottom" align="left">
                        <asp:Label ID="Msg" runat="server" Width="117px" Height="26px"></asp:Label>
                    </td>
                </tr>
            </tbody>
        </table>
            </center>
    </form>


</body>
</html>
